home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2003 #3 / K-CD-3-2003.ISO / WinXP Service Pack 1 / xpsp1_sv_x86.exe / netsetup.exe / HasUPnP.inf next >
Encoding:
Windows Setup INFormation  |  2002-08-01  |  5.2 KB  |  183 lines

  1. ;
  2. ; This is the Setup information file for Network Setup Wizard Down-level Client 
  3. ; Setup Package.  Modified from upnp.inf --- Tin Qian 4/4/2001
  4. ;
  5. ; Copyright 2000-2001, Microsoft Corporation
  6. ;
  7.  
  8.  
  9. [Version]
  10. Signature=$CHICAGO$
  11. SetupClass=Base
  12.  
  13. [SourceDisksNames]
  14. 1=%TEMP%,"",1
  15.  
  16. [SourceDisksFiles]
  17. HasUPnP.inf=1
  18. ssdpapi.dll=1
  19. ssdpsrv.exe=1
  20. upnp.dll=1
  21. hnetwiz.dll=1
  22. icsdclt.dll=1
  23. ncxp16.dll=1
  24. ncxp32.dll=1
  25. ncxpnt.dll=1
  26.  
  27. [DestinationDirs]
  28. CopyInf = 17    ; LDID_INF, windows\inf
  29. CopySys = 11    ; LDID_SYS, windows\system
  30.  
  31.  
  32. ;
  33. ; INF Entry Points
  34. ;
  35. [DefaultInstall]
  36. OptionDesc=%UPNP_Desc%
  37. Tip=%UPNP_Tip%
  38. Parent = CommApps
  39. AddReg=MS_UPNP_Reg, SSDP.Register, RegisterDLLS, RunHnetWizard
  40. CopyFiles=CopyInf, CopySys
  41. UpdateInis=ICS_Client_AddLink
  42. InstallType = 0                ;Maunual Install Only
  43. IconIndex= 17                  ;XP UPNP mini-icon
  44. Uninstall=MS_UPNP_Uninstall
  45. Reboot=1
  46. BeginPrompt=BeginPromptSection
  47. EndPrompt=EndPromptSection
  48.  
  49. [BeginPromptSection]
  50. Title=%PKG_DESC%
  51.  
  52. [EndPromptSection]
  53. Prompt=%EndPrompt%
  54.  
  55. [ICS_Client_AddLink]
  56. setup.ini, progman.groups, , "Comm_Group=%COMM_DESC%"
  57. setup.ini, Comm_Group,,"""%ICS_DESC%"",""%25%\rundll32.exe %11%\icsdclt.dll,ICSClient"""
  58.  
  59. [ICS_Client_RemoveLink]
  60. setup.ini, progman.groups, , "Comm_Group=%COMM_DESC%"
  61. setup.ini, Comm_Group,,"""%ICS_DESC%""
  62.  
  63. [MS_UPNP_Uninstall]
  64. AddReg=MS_UPNP_Uninstall_Reg, UnRegisterDLLs, BootstrapDeletion
  65. DelReg=SSDP.Unregister, RemoveDiscoveredDevices
  66. UpdateInis=ICS_Client_RemoveLink
  67. Reboot=1
  68.  
  69. [MS_UPNP_Uninstall_Part2]
  70. DelFiles = DelSys
  71.  
  72. ;
  73. ; File Sections.  These actually list which files are copied.  The destination
  74. ; dir for each section is set by DestinationDirs above.
  75. ;
  76.  
  77. [CopyInf]
  78. hnwcli.inf,HasUPnP.inf
  79.  
  80. ; Provide temporary file names so that they are copied to destination using the temporary 
  81. ; names then get renamed upon reboot.  This is useful when the files are in use.
  82. [CopySys]
  83. ssdpapi.dll,,_ssdpapi.tmp,6
  84. ssdpsrv.exe,,_ssdpsrv.tmp,6
  85. upnp.dll,,_upnp.tmp,6
  86. hnetwiz.dll,,_hnetwiz.tmp,6
  87. icsdclt.dll,,_icsdclt.tmp,6
  88. ncxp16.dll,,_ncxp16.tmp,6
  89. ncxp32.dll,,_ncxp32.tmp,6
  90. ncxpnt.dll,,_ncxpnt.tmp,6
  91.  
  92. ; delete dlls and exes even if they are in use.
  93. [DelSys]
  94. ssdpapi.dll,,,1
  95. ssdpsrv.exe,,,1
  96. upnp.dll,,,1
  97. upnpui.dll,,,1
  98. hnetwiz.dll,,,1
  99. icsdclt.dll,,,1
  100. ncxp16.dll,,,1
  101. ncxp32.dll,,,1
  102. ncxpnt.dll,,,1
  103.  
  104. ;
  105. ; Registry Settings
  106. ;
  107.  
  108. ; Network Setup Wizard Down-level Client Setup
  109. ; Lists upnp as an installed optional component
  110. ;
  111. [MS_UPNP_Reg]
  112. HKLM,"%KEY_OPTCOMPONENTS%","UPNP",,"UPNP"
  113. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","INF",,"hnwcli.inf"
  114. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Section",,"DefaultInstall"
  115. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Installed",,"1"
  116.  
  117. ; Mark UPNP as uninstalled and restore the previous UPnP Setup
  118. ;
  119. [MS_UPNP_Uninstall_Reg]
  120. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","INF",,"upnp.inf"
  121. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Section",,"UPNP"
  122. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Installed",,"0"
  123.  
  124. ; SSDP-related
  125. ;
  126. [SSDP.Register]
  127. HKLM,"%KEY_RUNSERVICES%","SSDPSRV",,"%11%\ssdpsrv.exe"
  128. HKLM,"%KEY_RUN%","ICSDCLT",,"%25%\rundll32.exe %11%\icsdclt.dll,ICSClient"
  129.  
  130. [SSDP.Unregister]
  131. HKLM,"%KEY_RUNSERVICES%","SSDPSRV"
  132. HKLM,"%KEY_RUN%","ICSDCLT"
  133. HKLM,"%KEY_ICSCLIENT%"
  134.  
  135. ;register/unregister upnp dlls. Also run home network setup wizard once.
  136. ;
  137. [RegisterDLLS]
  138. HKLM,"%KEY_RUNONCEEX%\upnp","000",,"%11%\upnp.dll|DllRegisterServer"
  139. HKLM,"%KEY_RUNONCEEX%\icsdclt","000",,"%11%\icsdclt.dll|DllRegisterServer"
  140.  
  141. [RunHnetWizard]
  142. HKLM,"%KEY_RUNONCEEX%\upnp","999",,"%25%\rundll32.exe %11%\hnetwiz.dll,HomeNetWizardRunDll"
  143.  
  144. [UnRegisterDLLs]
  145. HKLM,"%KEY_RUNONCEEX%\upnp","000",,"%11%\upnp.dll|DllUnregisterServer"
  146. HKLM,"%KEY_RUNONCEEX%\icsdclt","000",,"%11%\icsdclt.dll|DllUnregisterServer"
  147. HKLM,"%KEY_RUNONCEEX%\upnp","001",,"%11%\upnpui.dll|DllUnregisterServer"
  148.  
  149. ; for uninstallation
  150. ;   - this tells setup to add a registry key that, after reboot, will run
  151. ;     the exported 'InstallHInfSection' function from setupx.dll and tell
  152. ;     it to load this .inf file again and process the section
  153. ;     "MS_UPNP_Uninstall_Part2", which will delete the files.
  154. ;     Wonderful.
  155. [BootstrapDeletion]
  156. HKLM,"%KEY_RUNONCEEX%\upnp","999",,"RUNDLL SETUPX.DLL,InstallHInfSection MS_UPNP_Uninstall_Part2 64 upnp.inf"
  157.  
  158. ; This is a hack to remove the list of discovered devices when we're
  159. ; uninstalled.
  160. [RemoveDiscoveredDevices]
  161. HKLM,"%KEY_UPNPDATA%"
  162.  
  163. ;
  164. ; Strings
  165. ;
  166.  
  167. [Strings]
  168. ;Non-Localizable strings
  169. KEY_RUNONCEEX = "Software\Microsoft\Windows\CurrentVersion\RunOnceEx"
  170. KEY_OPTCOMPONENTS = "Software\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents"
  171. KEY_RUNSERVICES = "Software\Microsoft\Windows\CurrentVersion\RunServices"
  172. KEY_RUN = "Software\Microsoft\Windows\CurrentVersion\Run"
  173. KEY_UPNPDATA = "Software\Microsoft\Windows\CurrentVersion\UPnP"
  174. KEY_ICSCLIENT = "Software\Microsoft\Windows\CurrentVersion\ICSClient"
  175.  
  176. ;Localizable strings
  177. PKG_DESC = "Guiden Konfigurera nΣtverk"
  178. EndPrompt = "Du kommer att ombes att starta om datorn. Ta bort eventuell diskett eller CD-skiva ur enheten och klicka dΣrefter pσ OK."
  179. UPNP_Desc = "Universal Plug and Play"
  180. UPNP_Tip = "Universal Plug and Play g÷r att Windows och smarta enheter kan anslutas och kommunicera helt s÷ml÷st."
  181. Comm_Desc = "Tillbeh÷r\Kommunikation"
  182. ICS_Desc = "Internet-gateway"
  183.